From: Stefan Monnier Date: Sun, 4 Apr 2004 20:18:44 +0000 (+0000) Subject: (fill-comment-paragraph): Obey indent-tabs-mode. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~23375 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=3e2de24d19c9419658337f9263df9eb55252390a;p=emacs.git (fill-comment-paragraph): Obey indent-tabs-mode. --- diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 2ac09f11256..aaa10fbce5f 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -811,9 +811,13 @@ can take care of filling. JUSTIFY is used as in `fill-paragraph'." (save-excursion (goto-char comstart) (if has-code-and-comment - (concat (make-string (/ (current-column) tab-width) ?\t) - (make-string (% (current-column) tab-width) ?\ ) - (buffer-substring (point) comin)) + (concat + (if (not indent-tabs-mode) + (make-string (current-column) ?\ ) + (concat + (make-string (/ (current-column) tab-width) ?\t) + (make-string (% (current-column) tab-width) ?\ ))) + (buffer-substring (point) comin)) (buffer-substring (line-beginning-position) comin)))) beg end) (save-excursion